using System;
using System.ComponentModel;

namespace QLTB.BusinessObjects
{
    /// <summary>
    /// Project: NNS System 
    /// Generated Class for Table : TBL_DieuChuyen.
    /// Date: 19/07/2010
    /// Author: Trần Hoàng Tâm
    /// </summary>
    public class TBL_DieuChuyen : Object
    {
        #region Init

        private string m_GhiChu;
        private int m_MaBCDen;
        private int m_MaBCdi;
        private int m_MaTB;
        private DateTime m_Ngay;
        private int m_id;


        public TBL_DieuChuyen()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public TBL_DieuChuyen(
            int id,
            int MaTB,
            int MaBCdi,
            int MaBCDen,
            DateTime Ngay,
            string GhiChu)
        {
            //
            // TODO: Add constructor logic here
            //
            SetData
                (
                    id,
                    MaTB,
                    MaBCdi,
                    MaBCDen,
                    Ngay,
                    GhiChu
                );
        }


        public void SetData(
            int id,
            int MaTB,
            int MaBCdi,
            int MaBCDen,
            DateTime Ngay,
            string GhiChu)
        {
            //
            // TODO: Add constructor logic here
            //
            m_id = id;
            m_MaTB = MaTB;
            m_MaBCdi = MaBCdi;
            m_MaBCDen = MaBCDen;
            m_Ngay = Ngay;
            m_GhiChu = GhiChu;
        }

        #endregion

        #region Property

        [DisplayName("id")]
        [Category("Primary Key")]
        public int id
        {
            get { return m_id; }
            set { m_id = value; }
        }

        [DisplayName("MaTB")]
        [Category("Column")]
        public int MaTB
        {
            get { return m_MaTB; }
            set { m_MaTB = value; }
        }

        [DisplayName("MaBCdi")]
        [Category("Column")]
        public int MaBCdi
        {
            get { return m_MaBCdi; }
            set { m_MaBCdi = value; }
        }

        [DisplayName("MaBCDen")]
        [Category("Column")]
        public int MaBCDen
        {
            get { return m_MaBCDen; }
            set { m_MaBCDen = value; }
        }

        [DisplayName("Ngay")]
        [Category("Column")]
        public DateTime Ngay
        {
            get { return m_Ngay; }
            set { m_Ngay = value; }
        }

        [DisplayName("GhiChu")]
        [Category("Column")]
        public string GhiChu
        {
            get { return m_GhiChu; }
            set { m_GhiChu = value; }
        }

        #endregion
    }

    #region Enum Fields

    public enum TBL_DieuChuyenFields
    {
        id,
        MaTB,
        MaBCdi,
        MaBCDen,
        Ngay,
        GhiChu
    }

    #endregion
}